package com.qf.Work_queue;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * author:z
 * time:2021/12/16 19:04
 * description:
 */
@Component
@RabbitListener(queues = "work_queue")
public class WorkListener2 {

    @RabbitHandler
    public void onMessage(String msg){
        System.out.println("工作队列模式====2 ："+msg);
    }
}
